import request from '@/utils/request'

// 下载模板
export function downloadTemplate(id) {
  return request({
    url: `/agreement/config/get/${id}`,
    method: 'GET',
  })
}
// 获取省市数据
export function getCityData() {
  return request({
    url: '/selectCityData',
    method: 'GET',
  })
}
// 获取小金额剩余次数
export function getTimeInt(bankId) {
  return request({
    url: `/enterprise/getTimeInt?bankId=${bankId}`,
    method: 'GET',
  })
}
// 获取小额
export function getSmallDeposit(bankId) {
  return request({
    url: `/enterprise/sendComBankAcc?bankId=${bankId}`,
    method: 'POST',
  })
}
// 企业注册
export function addCompany(data) {
  return request({
    url: '/enterprise/add',
    method: 'POST',
    data
  })
}
// 校验企业是否存在
export function enterpriseCheck(params) {
  return request({
    url: '/enterprise/check',
    method: 'GET',
    params
  })
}
